using SqlSugar;
using System;

namespace Luka.Entities.System;

/// <summary>
/// 
///</summary>
[SugarTable("SysModule")]
[Tenant("System")]
public class SysModule
{
    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id"  , IsPrimaryKey = true , IsIdentity = true)]
    public int Id { get; set; }
    /// <summary>
    /// 名称
    ///</summary>
    [SugarColumn(ColumnName = "Name"   )]
    public string Name { get; set; }
    /// <summary>
    /// icon图标
    ///</summary>
    [SugarColumn(ColumnName = "Icon" , IsNullable = true  )]
    public string? Icon { get; set; }
    /// <summary>
    /// 路径
    ///</summary>
    [SugarColumn(ColumnName = "Url" , IsNullable = true  )]
    public string? Url { get; set; }
    /// <summary>
    /// 父级Id
    ///</summary>
    [SugarColumn(ColumnName = "ParentId" , IsNullable = true  )]
    public int? ParentId { get; set; }
    /// <summary>
    /// 类型
    ///</summary>
    [SugarColumn(ColumnName = "Type" , IsNullable = true  )]
    public int? Type { get; set; }
    /// <summary>
    /// 状态
    ///</summary>
    [SugarColumn(ColumnName = "Status" , IsNullable = true  )]
    public int? Status { get; set; }
    /// <summary>
    /// 备注
    ///</summary>
    [SugarColumn(ColumnName = "Remark" , IsNullable = true  )]
    public string? Remark { get; set; }
    /// <summary>
    /// 排序
    ///</summary>
    [SugarColumn(ColumnName = "Sort" , IsNullable = true  )]
    public int? Sort { get; set; }
    /// <summary>
    /// 是否展示
    ///</summary>
    [SugarColumn(ColumnName = "IsShow"   )]
    public int IsShow { get; set; }
    /// <summary>
    /// 创建时间
    ///</summary>
    [SugarColumn(ColumnName = "Created" , IsNullable = true  )]
    public DateTime? Created { get; set; }
    /// <summary>
    /// 创建人
    ///</summary>
    [SugarColumn(ColumnName = "Creater" , IsNullable = true  )]
    public string? Creater { get; set; }
    /// <summary>
    /// 修改时间
    ///</summary>
    [SugarColumn(ColumnName = "Updated" , IsNullable = true  )]
    public DateTime? Updated { get; set; }
    /// <summary>
    /// 修改人
    ///</summary>
    [SugarColumn(ColumnName = "Updater" , IsNullable = true  )]
    public string? Updater { get; set; }
    /// <summary>
    /// 是否删除
    ///</summary>
    [SugarColumn(ColumnName = "IsDel"   )]
    public int IsDel { get; set; }
    /// <summary>
    /// 层级
    ///</summary>
    [SugarColumn(ColumnName = "Level"   )]
    public int Level { get; set; }
    /// <summary>
    /// 操作
    ///</summary>
    [SugarColumn(ColumnName = "Action" , IsNullable = true  )]
    public int? Action { get; set; }
}
